#ifndef __APP_SRC__
#define __APP_SRC__ 


typedef enum _APP_SRC{
	CVBS,
	SVIDEO,
	EXCVBS,
	EXSVIDEO,
	PC,
	YPBPR,
	MAXSRC
}APP_SRC;

typedef enum _APP_PIP_SIZE{
	SMALL,
	MIDDLE,
	LARGE,
	MAXSIZE
}APP_PIP_SIZE;

typedef enum _APP_PIP_POS{
	LEFT_TOP,
	RIGHT_TOP,
	LEFT_BOTTOM,
	RIGHT_BOTTOM,
	MAXPOS
}APP_PIP_POS;

typedef enum _APP_PIP_MODE{
	PIP_OFF,
	PIP_ON,
	POP_ON,
	DUAL_ON,
	PIP_SHOW,
	MAXMODE
}APP_PIP_MODE;

void TaskSRC(void);
void Init_SRCAPP(void);
void Change_MainSrc(APP_SRC src);
void Change_PIPSrc(APP_SRC src);
void Change_PIPPosSize(APP_PIP_POS pos, APP_PIP_SIZE size);
void Change_PIPMode(APP_PIP_MODE mode);
void Change_PIPMute(BOOL mute);
BOOL IsAvailabe(APP_SRC MainSrc, APP_SRC PIP0Src);
void Update_Mode(void);
void Change_PIPTrans(BYTE val);
void Set_Brightness(BYTE val);
void Set_Contrast(BYTE val);
void Set_Hue(BYTE val);
#endif

